package com.aidong.videoComment.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.videoComment.biz.TrnVideoPraiseBiz;
import com.aidong.videoComment.dao.TrnVideoCommentDao;
import com.aidong.videoComment.dao.TrnVideoPraiseDao;
import com.aidong.videoComment.entity.TrnVideoComment;
import com.aidong.videoComment.entity.TrnVideoPraise;
import com.aidong.videoComment.entity.VideoComment;


@Service("trnVideoPraiseBiz")
public class TrnVideoPraiseBizImpl implements TrnVideoPraiseBiz {
	
	private TrnVideoPraiseDao trnVideoPraiseDao;

	@Autowired
	public void setTrnVideoPraiseDao(TrnVideoPraiseDao trnVideoPraiseDao) {
		this.trnVideoPraiseDao = trnVideoPraiseDao;
	}

	@Override
	public int addVideoPraise(TrnVideoPraise videoPraise) {
		return trnVideoPraiseDao.addVideoPraise(videoPraise);
	}

	@Override
	public TrnVideoPraise getVideoPraise(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return trnVideoPraiseDao.getVideoPraise(map);
	}

	@Override
	public int editVideoPraise(TrnVideoPraise videoPraise) {
		// TODO Auto-generated method stub
		return trnVideoPraiseDao.editVideoPraise(videoPraise);
	}
	
}